const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
// var schema_news      = new mongoose.Schema( { articleTitle:String,articleImg:String,isShow:Number,articleContent:String,articleKey:String,createTime:Date});

var schema_comments = new mongoose.Schema({
    commentId: String, //评论ID
    userId: String, //用户ID
    informationId: String, //信息id
    userName: String, //用户名
    commentContent: String, //评论内容
    commentTime: String, //评论时间
    goodNumber: Number, //点赞数
    badNumber: Number //反对数
});
schema_comments.plugin(mongoosePaginate);
const Comments = mongoose.model('Comments', schema_comments, 'comments');
module.exports = Comments;